130

Beginner’s Guide to Code Algorithms

130

We then repeat these steps until all currency codes from the input spreadsheet are

exhausted.

In order to write the code, specific areas of the web page must be targeted. There

are three areas that we are interested in:

• The field in which the currency code is entered (selection criteria field)

• The button which triggers the search (activation field)

• The field that stores the results (output field)

9.2  UNDERSTANDING THE HTML

This is critical because only through understanding the format can one read it cor­

rectly to be used in a program.

I used a technique described below.

Launch the webpage

Press F12 or go to tools—​

developer tools on your

browser

Be sure to be on the Dom

Explorer tab and enter Ctrl-​B

or click the circled button